using System;
using Castle.DynamicProxy;

namespace WindsorContainer.Service
{
    public class LoggingInterceptor : IInterceptor
    {
        public object Intercept(IInvocation invocation, params object[] args)
        {
            Console.Out.WriteLine("invocation = {0}", invocation.Method.Name);

            return invocation.Proceed(args);
        }
    }
}